package com.smedi.ismedi.personnel.core.port.adapter.persistence.mybatis.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.smedi.ismedi.personnel.core.application.query.vo.InternalPersonAssignmentVo;
import com.smedi.ismedi.personnel.core.application.query.vo.PersonSyncFromImisVo;
import com.smedi.ismedi.personnel.core.port.adapter.persistence.model.PersonSyncFromImisEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: xulinjun
 * @Date: 2021-6-8 10:52
 */
public interface PersonSyncFromImisMapper extends BaseMapper<PersonSyncFromImisEntity> {
    void truncateAll();

    IPage<PersonSyncFromImisVo> selectPersonSyncVoPagination(Page<InternalPersonAssignmentVo> page,
                                                             @Param("lastName") String lastName,
                                                             @Param("employeeNum") String employeeNum,
                                                             @Param("hrJob") String hrJob,
                                                             @Param("subOrganizationId") Long subOrganizationId);
}
